package com.laihuichuxing.order.concurrent;
 /**
  * Description: 任务队列
  * Author: Qinxuefeng
  * Version: 1.0
  * Create Date Time: 2018/10/15 17:28.
  * Update Date Time: 
  */
public interface RunnableQueue {

	//有新的任务进来首先加入到队列
	void offer(Runnable runnable);

	//工作线程通过take方法获取Runnable
	Runnable take() throws InterruptedException;

	//获取任务队列中任务的数量
	int size();
}
